<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
</head>
<body>
    <div id="app">
        <!-- 处理语句 -->
        <button @click="isShow = !isShow">clickMe</button>

        <!-- 函数名 -->
        <button @click="handleClick()">clickMe</button>

        <!-- 传入事件处理对象 -->
        <button @click="handleClick($event)">clickMe</button>

        <div v-show="isShow">
            小可爱 Biu~的一下出现了
        </div>
    </div>

    <script>
        let vm = new Vue({
            el: '#app',
            data: {
                isShow: false
            },
            methods: {
                handleClick(ev){
                    console.log(ev)
                    this.isShow = !this.isShow
                }
            }
        })
    </script>
</body>
</html>